package com.zhang.order.service;

import com.zhang.common.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//http://service-product/api/v1/product/getproduct/"
@FeignClient(value = "service-product")
public interface ProductService {

    @RequestMapping("/api/v1/product/getproduct/{pid}")
    Product findByPid(@PathVariable("pid") Integer pid);

}
